{ext->class_function class="plugins" assign="is_plugins"}
{if $is_plugins == 1}
{ext->class_function class="plugins" func="get_all_plugins" assign="plugins_list"}
{ext->countArray array=$plugins_list assign="plugins_count"}
{include file='admin/modules/plugins/tabs.html'}
{if !$smarty.get.plugin || !$smarty.get.tempalate}
		<table width="100%" cellpadding="0" cellspacing="0" border="6" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
		<tr>
			<td>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					</tr>
				</table>
				{if $plugins_count > 0}
					<table width="100%" cellpadding="0" cellspacing="0">
						<tr>
							<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
						</tr>
					</table>
					{foreach from=$plugins_list item="el"}
						<!-- * -->
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
							</tr>
						</table>
						<table width="100%" cellpadding="0" cellspacing="0" bgcolor="{if $el.parent}#ffffff{else}#F4F6F7{/if}">
							<tr>			
								{ext->class_function class="plugins" func="get_plugin_discribe" plugin=$el assign="plugin_info"}
								<td height="20" style="padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE">{if $plugin_info.index}<a href="index.php?admin=1&body=admin/modules/plugins/index.html&module=plugins&tempalate=index.html&plugin={$el}">{$el}</a>{else}{$el}{/if} - {$plugin_info.describtion}</td>
							</tr>
						</table>
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
							</tr>
						</table>
						<!-- /* -->
					{/foreach}
				{else}
					<table width="100%" cellpadding="0" cellspacing="0">
						<tr>
							<td height="50" bgcolor="#FFFFFF" align="center" style="padding:15px">{t t='Nėra nei vieno plugino'}</td>		
						</tr>
					</table>
				{/if}
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					</tr>
				</table>
			</td>		
		</tr>
	</table>
	{else}
		{if $plugins_count > 0}
			<table width="100%" cellpadding="0" cellspacing="0" border="6" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
				<tr>
					<td>			
						{capture name="content"}{$smarty.get.plugin}{/capture}
						{assign var="path" value=$smarty.capture.content}
						{$data.plugins.$path.template} 
						{capture name="un_set_session"}plugins.{$path}{/capture}
						{unset_session var=$smarty.capture.un_set_session}
					</td>		
				</tr>
			</table>
		{/if}
	{/if}
{/if}
